package com.springboot.cloud.goods.feign;

import com.springboot.cloud.common.core.entity.vo.Result;
import com.springboot.cloud.common.web.entity.dto.GoodsDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author godyao
 * @date 2022/3/26
 */
@FeignClient(value = "goods", fallback = GoodsFeignFallBack.class)
public interface GoodsFeign {
    @GetMapping("/goods/{id}")
    Result<GoodsDto> find(@PathVariable Long id);
}
